package map.android.baidu.carpool.data.impl;

import android.content.Context;
import map.android.baidu.carpool.WebConfig;
import map.android.baidu.carpool.data.CarpoolBaseData;
import map.android.baidu.carpool.response.DiscountListResponse;
import map.android.baidu.carpool.setting.UserInfoSetting;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhangtongyu on 15/3/23.
 * main模块获取优惠券列表接口 request
 */
public class DiscountListData extends CarpoolBaseData<DiscountListResponse> {

    public DiscountListData(Context context) {
        super(context);
    }

    @Override
    protected String getUrl() {
        return WebConfig.getUrl(WebConfig.URL_ID_DISCOUNT_LIST);
    }

    @Override
    protected Map<String, String> getParams() {
        Map<String , String> params = new HashMap<String, String>();
        params.put("bduss" , UserInfoSetting.getBduss());
        return params;
    }
}
